import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/views/Home'

//注意这是底部四大页面
import album from "@/views/album"
import classify from "@/views/classify"
import ShoppingCart from "@/views/ShoppingCart"
import user from "@/views/My.vue";

//home分页
import search from "@/views/homepage/homepage";
//home  跳转居家  餐厨页面
import kitchen from "@/views/homepage/HomeKitchen"
//home 人气推荐跳转
import Newhotlist from "@/views/homepage/Newhotlist";
import ProductJump from "@/views/homepage/ProductJump"

//好物跳转
import HomeGoodies from "@/views/homepage/HomeGoodies";


//专辑跳转
import topic from "@/views/albumtatle"
//分类跳转
import classifythen from "@/views/classifythen"

//购物车订单跳转
import ShoppingSettlement from "@/views/ShoppingSettlement"

Vue.use(VueRouter)
const routes = [
  //首页
  {
    path: '/',
    component: Home
  },
  //人气好物跳转
  {
    path: '/Newhotlist',
    component: Newhotlist,
  },
  //专辑
  {
    path: '/album',
    component: album
  },
  {
    path: '/album/topic',
    component: topic,
  },
  //分类
  {
    path: '/classify',
    component: classify
  },
  {
    path: '/classify/classifythen',
    component: classifythen

  },
  //购物车
  {
    path: '/ShoppingCart',
    component: ShoppingCart
  },
  //购物车
  {
    path: '/ShoppingCart/ShoppingSettlement',
    component: ShoppingSettlement
  },
  //用户页面
  {
    path: '/user',
    component: user
  },
  //首页搜索跳转
  {
    path: '/search',
    component: search,
  },
  {
    path: '/kitchen',
    component: kitchen
  },
  {
    path: '/ProductJump',
    component: ProductJump
  },
  {
    path: '/HomeGoodies',
    component: HomeGoodies
  }
]

const router = new VueRouter({
  routes
})

export default router
